<?php
namespace app\serversms\logic;

use \app\manage\logic\BaseLogic;

/**
 * @author:      李颖
 * @DateTime:    2017-07-17 09:43:17
 * @Description: 后台 - 手机短信
 */
class Sms extends BaseLogic
{
	protected $smsLogic = 'app\serversms\logic\Sms';
    protected $smsValidate = 'app\serversms\validate\Sms';
    use \app\serveruser\traits\AddAppIdToRunOne;

    //编辑短信配置
    public function editSms($data): array 
    {
        return $this->_addAppIdToRunOne($data, "serversms/sms/Sms/editSms", $this->smsValidate, $this->smsLogic);
    }

    /*获取短信模板配置列表*/
    public function smsList($data): array 
    {
        return $this->_addAppIdToRunOne($data, "serversms/sms/Sms/smsList", $this->smsValidate, $this->smsLogic);
    }

    /*获取某个短信配置详情*/
    public function smsInfo($data): array 
    {
        return $this->_addAppIdToRunOne($data, "serversms/sms/Sms/smsInfo", $this->smsValidate, $this->smsLogic);
    }

    /*删除某短信配置*/
    public function delOneSms($data): array 
    {
        return $this->_addAppIdToRunOne($data, "serversms/sms/Sms/delOneSms", $this->smsValidate, $this->smsLogic);
    }
}